﻿@using Telerik.Web.Mvc.UI;
@using Telerik.Web.Mvc;
@using Forest.Web.Framework.UI;
@using Forest.Cat.Admin.Models;
@using Forest.Web.Framework;
@{
    
    //resources
    Html.AppendCssFileParts(Url.Content("~/Content/themes/lightness/jquery-ui.min.css"));
    Html.AppendScriptParts(@Url.Content("~/Administration/Scripts/jquery-ui-1.9.1.js"));
    Html.AppendCssFileParts(@Url.Content("~/Administration/Content/styles.css"));
    Html.AppendScriptParts(@Url.Content("~/Administration/Scripts/roll.js"));
    Html.AppendScriptParts(@Url.Content("~/Administration/Scripts/admin.js"));
    Html.AppendScriptParts(@Url.Content("~/Administration/Scripts/MicrosoftMvcAjax.js"));
    Html.AppendScriptParts(@Url.Content("~/Administration/Scripts/MicrosoftAjax.js"));
    Html.AppendScriptParts(@Url.Content("~/Administration/Scripts/jquery.validate.unobtrusive.min.js"));
    Html.AppendScriptParts(@Url.Content("~/Administration/Scripts/jquery.validate.min.js"));
    Html.AppendScriptParts(@Url.Content("~/Administration/Scripts/jquery.unobtrusive-ajax.min.js"));
    Html.AppendScriptParts(@Url.Content("~/Administration/Scripts/jquery-1.7.1.min.js"));
    Html.AppendCssFileParts(Url.Content("~/Content/style.css"));
        //Html.AppendScriptParts(@Url.Content("~/Administration/Scripts/jquery-ui-1.9.1.js"));
}
<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
    @Html.NopCssFiles(ResourceLocation.Head)
    @Html.NopScripts(ResourceLocation.Head)
</head>
<body>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#btnSearch').bind('click', function () {
                if ($('.jobsInput').val().length < 2) {
                    alert('请至少输入两个关键字！');
                }
                else {
                    var type = 'jobTitle';
                    if ($('.jobSel').attr('type') != 'job') {
                        type = 'companyName';
                    }
                    window.location.href = "/Catalog/SearchJobList?" + type + "=" + escape($('.jobsInput').val());
                }
                return false;
            });
        });
    </script>
    <div id="wrap">
        @Html.Partial("Header")
        <div id="contents">
            @Html.Partial("SearchBar")
            <div class="main_backend">
                <p>
                    您现在的位置</p>
             @*   <span>?帮助</span>*@
            </div>
            <div class="backend_content">
                <div class="backend_content_left">
                    @{Html.RenderAction("Navigation", "JobHunting", new { currentAction = ViewContext.RouteData.Values["action"] });}
                </div>
                @RenderBody()
                <div class="cr">
                </div>
            </div>
        </div>
        @Html.Partial("Footer")
    </div>
</body>
</html>
